home *** CD-ROM | disk | FTP | other *** search
-
-
-
- AAAALLLLsssseeeetttteeeerrrrrrrroooorrrrhhhhaaaannnnddddlllleeeerrrr((((3333ddddmmmm)))) AAAALLLLsssseeeetttteeeerrrrrrrroooorrrrhhhhaaaannnnddddlllleeeerrrr((((3333ddddmmmm))))
-
-
-
- NNNNAAAAMMMMEEEE
- ALseterrorhandler - (obsolete) establish an alternate audio error
- handling routine
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////aaaauuuuddddiiiioooo....hhhh>>>>
-
- AAAALLLLeeeerrrrrrrrffffuuuunnnncccc AAAALLLLsssseeeetttteeeerrrrrrrroooorrrrhhhhaaaannnnddddlllleeeerrrr((((AAAALLLLeeeerrrrrrrrffffuuuunnnncccc eeeeffffuuuunnnncccc))))
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRR
- _e_f_u_n_c expects a pointer to an error handling routine declared as
- vvvvooooiiiidddd eeeerrrrrrrroooorrrrffffuuuunnnncccc((((lllloooonnnngggg,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr****,,,, ............))))
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- AAAALLLLsssseeeetttteeeerrrrrrrroooorrrrhhhhaaaannnnddddlllleeeerrrr is obsolete and is provided for backward compatibility.
- The preferred function is aaaallllSSSSeeeettttEEEErrrrrrrroooorrrrHHHHaaaannnnddddlllleeeerrrr((((3333ddddmmmm)))). Note that the default
- error handler is now none; you must call aaaallllSSSSeeeettttEEEErrrrrrrroooorrrrHHHHaaaannnnddddlllleeeerrrr to establish
- one.
-
- The Audio Library provides a default error handling routine which prints
- diagnostic messages whenever an error occurs in a library call.
-
- AAAALLLLsssseeeetttteeeerrrrrrrroooorrrrhhhhaaaannnnddddlllleeeerrrr((((3333ddddmmmm)))) allows you to override the default error handling
- routine.
-
- The arguments that are passed to the error handling routine are an error
- code and a printf-like string perhaps followed with printf-like
- arguments.
-
- The returned value is a pointer to the previous error handling routine.
-
- Setting _e_f_u_n_c to 0 prevents any error handling routine from being called;
- in this case, the application should check for errors by examining the AL
- function return values. Unless printed warnings are desired, we
- recommend disabling the error handling function and testing for errors
- within the application.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEE
- #include <dmedia/audio.h>
- ALerrfunc originalErrorHandler;
- ...
-
- originalErrorHandler = ALseterrorhandler(0);
- /* AL errors here will go unnoticed */
- ...
-
- ALseterrorhandler(originalErrorHandler);
- /* back to normal reporting of AL errors */
-
- ...
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- AAAALLLLsssseeeetttteeeerrrrrrrroooorrrrhhhhaaaannnnddddlllleeeerrrr((((3333ddddmmmm)))) AAAALLLLsssseeeetttteeeerrrrrrrroooorrrrhhhhaaaannnnddddlllleeeerrrr((((3333ddddmmmm))))
-
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- stdarg(5)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-